package com.zc.study.designPattern.行为型设计模式.CommandPattern;

/**
 * 最小化命令类:具体命令类
 */
public class MinimizeCommand extends Command {
    private WindowHandler whObj; //维持对请求接收者的引用

    public MinimizeCommand() {
        whObj = new WindowHandler();
    }

    //命令执行方法,将调用请求接收者的业务方法
    @Override
    public void excute() {
        whObj.miniize();
    }
}
